package routers

import (
	"behind/middleWare"

	"github.com/gin-gonic/gin"
)

func sysNoCheckRoleRouter(r *gin.RouterGroup) {
	r = r.Group("/")
	in1Router(r)
	in2Router(r)
	loginRouter(r)
	object1Router(r)
	spend1Router(r)
	spend2Router(r)
	companyRouter(r)
}

func InitRouter() *gin.Engine {
	r := gin.New()
	r.Use(middleWare.Cors())
	g := r.Group("")
	sysNoCheckRoleRouter(g)
	return r
}
